#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
@AUTHOR: tyc
@VERSION: 1.0.0
@DESCRIPTION: 翻译
@time: 2021-06-28 21:29:38 
"""

import requests
s = input("输入要搜索的词语：")
url = "https://fanyi.baidu.com/sug"

data = {
    'kw': s
}
resp = requests.post(url, data=data)
print(resp)
print(resp.json())
resp.close()




